<!DOCTYPE html>
<html>
<head>
<style> 
p.test1 {
  width: 140px; 
  border: 1px solid #000000;
  word-break: keep-all;
}

p.test2 {
  width: 140px; 
  border: 1px solid #000000;
  word-break: break-all;
}
</style>
</head>
<body>

<h1>word-break 属性</h1>

<p class="test1">This paragraph contains some text. This line will break at hyphens.</p>

<p class="test2">This paragraph contains some text. The lines will break at any character.</p>

<p><b>注释：</b>Opera 12 和更早版本不支持 word-break 属性。</p>

</body>
</html>
